<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>

<div class="fl" id="teabag">
	<h2><?php if ($module->showtitle) { echo $module->title;	 } ?></h2>
	<div id="box" class="por">	
		<ul id="foo2" class="latestnews<?php echo $moduleclass_sfx; ?>">
		<?php foreach ($list as $item) :  
		$images = json_decode($item->images); 
		?>
			<li>
				<a href="<?php echo $item->link; ?>"><img src="<?php if ($images->image_fulltext=="") echo JURI::base()."/images/noimg.jpg";	else echo JURI::base().$images->image_fulltext; ?>" alt="<?php echo $item->title; ?>" title="<?php echo $item->title; ?>" /></a>
			</li>
		<?php endforeach; ?>
		</ul>	
	</div>
</div>
